Skip to main content

DetachDisk

Description

The call DetachDisk unloads a data disk from an ECS instance or unloads a system disk.

Request Method

POST

Request Path

/apsara/route/Ecs/DetachDisk

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
InstanceIdBODYstringYesi-bp67acfmxazb4p****the ID of the ECS instance to be unloaded.
regionIdBODYstringYesNo sample value for this parameter.region id
DeleteWithInstanceBODYbooleanNofalsewhen uninstalling the system disk, set the automatic release attribute. Indicates whether the system disk is released at the same time when the ECS instance is released. true: release. false: not released. The cloud disk will be preserved. default value: true. description if the data disk is unloaded, the default value is false.
versionBODYstringNo2016-01-01version of api
DiskIdBODYstringYesd-bp67acfmxazb4p****cloud disk ID to be uninstalled.

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}